package com.wh.switchbtn;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        SwitchBtn switchBtn = (SwitchBtn) findViewById(R.id.wiperSwitch1);

//        switchBtn.setBtnBackgroundColor(Color.parseColor("#ff0000"));
//        switchBtn.setBtnColor(Color.parseColor("#0000ff"));

    }
}
